package com.odianyun.hello.model.DTO;

import java.lang.String;
import java.lang.Integer;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.odianyun.db.mybatis.base.IBaseId;
import com.odianyun.project.base.IEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Code
 * @CreateDate 2021-07-30
 */
 @ApiModel("CodeDTO")
public class CodeDTO implements IEntity, IBaseId<Long> {
    @ApiModelProperty
    private Long id;
    /**
     * pool
     */
    @NotNull(message = "pool{javax.validation.constraints.NotNull.message}")
    @Size(min = 1, max = 50, message = "pool输入不正确")
    @ApiModelProperty(name = "pool", value="pool", example = "str", required = true, notes="最大长度：50")
    private String pool;
    /**
     * 类别
     */
    @NotNull(message = "类别{javax.validation.constraints.NotNull.message}")
    @Size(min = 1, max = 50, message = "类别输入不正确")
    @ApiModelProperty(name = "category", value="类别", example = "str", required = true, notes="最大长度：50")
    private String category;
    /**
     * 父编码
     */
    @Size(min = 0, max = 10, message = "父编码输入不正确")
    @ApiModelProperty(name = "parentCode", value="父编码", example = "str", notes="最大长度：10")
    private String parentCode;
    /**
     * 编码
     */
    @NotNull(message = "编码{javax.validation.constraints.NotNull.message}")
    @Size(min = 1, max = 50, message = "编码输入不正确")
    @ApiModelProperty(name = "code", value="编码", example = "str", required = true, notes="最大长度：50")
    private String code;
    /**
     * 名称
     */
    @Size(min = 0, max = 150, message = "名称输入不正确")
    @ApiModelProperty(name = "name", value="名称", example = "str", notes="最大长度：150")
    private String name;
    /**
     * 数据类型
     */
    @Size(min = 0, max = 20, message = "数据类型输入不正确")
    @ApiModelProperty(name = "dataType", value="数据类型", example = "str", notes="最大长度：20")
    private String dataType;
    /**
     * 语言
     */
    @NotNull(message = "语言{javax.validation.constraints.NotNull.message}")
    @Size(min = 1, max = 10, message = "语言输入不正确")
    @ApiModelProperty(name = "language", value="语言", example = "str", required = true, notes="最大长度：10")
    private String language;
    /**
     * 排序
     */
    @NotNull(message = "排序{javax.validation.constraints.NotNull.message}")
    @ApiModelProperty(name = "sort", value="排序", example = "1", required = true, notes="最大长度：10")
    private Integer sort;

    @Override
    public void setId(Long id) {
        this.id = id;
    }
    @Override
    public Long getId() {
        return id;
    }
    public void setPool(String pool) {
        this.pool = pool;
    }
    public String getPool() {
        return pool;
    }
    public void setCategory(String category) {
        this.category = category;
    }
    public String getCategory() {
        return category;
    }
    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }
    public String getParentCode() {
        return parentCode;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getCode() {
        return code;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public void setDataType(String dataType) {
        this.dataType = dataType;
    }
    public String getDataType() {
        return dataType;
    }
    public void setLanguage(String language) {
        this.language = language;
    }
    public String getLanguage() {
        return language;
    }
    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Integer getSort() {
        return sort;
    }

	/*---------------------------------- extra info --------------------------------*/
}